<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>消息框</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="popup.min.js" type="text/javascript"></script>
	</head>
	<body>
		<button onclick="alert('Hello CSS3')">警告框默认</button>
		<button onclick="alert('Hello CSS3','提示','Ok')">警告框</button>
		<button onclick="aaa()">确认框</button>
		<button onclick="bbb()">提示框</button>
		<button onclick="toast('提示信息',11111111)">toast</button>
		<button onclick="toast('提示信息',1000,'err')">err</button>
		<button onclick="toast('提示信息',1000,'warn')">warn</button>
		<button onclick="showLoading()">loading</button>
		<button onclick="hideLoading()">hideLoading()</button>
		<script>
			function aaa() {
				confirm('Hello HTML5', '提示', function(e) {
					console.log(e);
					alert('Hello CSS3', '提示', 'Ok')
				});
			}

			function bbb() {
				prompt('Hello JavaScript', '提示', '请输入网址，你懂得', function(e) {
					console.log(e);
					alert('Hello CSS3', '提示', 'Ok')
				})
			}
		</script>
	</body>
</html>
